#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"
void test1()
{
	Heap Hp;
	HeapInit(&Hp);
	HeapPush(&Hp,4);
	HeapPush(&Hp,3);
	HeapPush(&Hp,2);
	HeapPush(&Hp,1);
	HeapPop(&Hp);
	while (HeapSize(&Hp))
	{
	  printf("%d ", HeapTop(&Hp));
	  HeapPop(&Hp);
	}
}
void test2()
{
	//Heap Hp;
	//HeapSort(&Hp);
	
   // HeapDestroy(&Hp);
}
int main()
{
	//test1();
	//test2();
	int a[10] = { 6,3,5,7,9,4,8,2,10,1 };
	int n = sizeof(a) / sizeof(a[0]);
	HeapSort(a, n);
	return 0;
}